/**
 * 二级页
 */

// -------------------------------二级页------------------------------------
	if(location.href=="http://tjj.jl.gov.cn/zwgk/"){ //政务公开
		
		//各个选项名称对应的内容数量
	    _EsdDynamicTransformationScript.num1 = $("#con div:eq(0) a").length - 1;
	    _EsdDynamicTransformationScript.num2 = $("#con div:eq(1) a").length - 1;

	    //各个选项名称
	    _EsdDynamicTransformationScript.esd1TagNum1 = $("#tit li:eq(0) a");
	    _EsdDynamicTransformationScript.esd1TagNum2 = $("#tit li:eq(1) a");

	    //各个选项中的第一个内容
	    _EsdDynamicTransformationScript.esd1TagNum1Content1 = $("#con div:eq(0) a:eq(0)");
	    _EsdDynamicTransformationScript.esd1TagNum2Content1 = $("#con div:eq(1) a:eq(0)");

	    //各个选项中的最后一个内容
	    _EsdDynamicTransformationScript.esd1TagNum1ContentN = $("#con div:eq(0) a:eq(" + _EsdDynamicTransformationScript.num1 + ")");
	    _EsdDynamicTransformationScript.esd1TagNum2ContentN = $("#con div:eq(1) a:eq(" + _EsdDynamicTransformationScript.num2 + ")");

	    //第一块
	    _EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {

	        e = $(this).mouseover();
	        $(document).bind("keydown.keydown_1", function (e) {
	            if (e.shiftKey && e.keyCode == 9) {}
	            else if (e.keyCode == 9) {
	                _EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
	                console.log(document.activeElement);
	                return false;
	            }
	        });

	    });
	    _EsdDynamicTransformationScript.esd1TagNum1.blur(function () {

	        $(document).unbind("keydown.keydown_1");
	    });

	    _EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
	        $(document).bind("keydown.keydown_s1", function (e) {
	            if (e.shiftKey && e.keyCode == 9) {
	                _EsdDynamicTransformationScript.esd1TagNum1.focus();
	                return false;
	            }
	        });
	    });
	    _EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
	        $(document).unbind("keydown.keydown_s1");
	    });

	    _EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
	        $(document).bind("keydown.keydown_e1", function (e) {
	            if (e.shiftKey && e.keyCode == 9) {}
	            else if (e.keyCode == 9) {
	                _EsdDynamicTransformationScript.esd1TagNum2.focus();
	                return false;
	            }
	        });
	    });
	    _EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
	        $(document).unbind("keydown.keydown_e1");
	    });

	    //第二块
	    _EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
	        e = $(this).mouseover();
	        $(document).bind("keydown.keydown_2", function (e) {
	            if (e.shiftKey && e.keyCode == 9) {
	                _EsdDynamicTransformationScript.esd1TagNum1.mouseover();
	                _EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
	                return false;
	            } else if (e.keyCode == 9) {
	                _EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
	                console.log(document.activeElement);
	                return false;
	            }
	        });

	    });
	    _EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
	        $(document).unbind("keydown.keydown_2");
	    });
		
	    $("#con>div:eq(1) a:first").focus(function () { 
			$(this).bind("keydown.keydown_zwgk1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					$(".zly_tbbg12 a:eq(0)").focus();
					return false;
				} else if (e.keyCode == 9) {
					
				}
			});
		});
		$("#con>div:eq(1) a:first").blur(function () {
			$(this).unbind("keydown.keydown_zwgk1");
		});
		
	    
	    $(".zly_more_2018:eq(1) a").focus(function () { // 	 人事任免-->重要会议 
			$(this).bind("keydown.keydown_zwgk1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					
				} else if (e.keyCode == 9) {
					$(".zly_tbbg6").mouseover();
					$(".zly_tbbg6 a").focus();
					return false;
				}
			});
		});
		$(".zly_more_2018:eq(1) a").blur(function () {
			$(this).unbind("keydown.keydown_zwgk1");
		});
		
		$(".zly_tbbg6 a").focus(function () {  //重要会议 
			$(this).bind("keydown.keydown_zwgk2", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					$(".zly_tbbg12:eq(0)").mouseover();
					$(".zly_more_2018:eq(1) a").focus();
					return false;
				} else if (e.keyCode == 9) {
					
				}
			});
		});
		$(".zly_tbbg6 a").blur(function () {
			$(this).unbind("keydown.keydown_zwgk2");
		});
		
		$(".zly_20180914bt:eq(0) a").focus(function () {  //重要会议 
			$(this).bind("keydown.keydown_zwgk3", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					$(".zly_tbbg6").mouseover();
					$(".zly_more_2018:eq(2) a").focus();
					return false;
				} else if (e.keyCode == 9) {
					
				}
			});
		});
		$(".zly_20180914bt:eq(0) a").blur(function () {
			$(this).unbind("keydown.keydown_zwgk3");
		});
		
	}
	
	if(location.href=="http://tjj.jl.gov.cn/tjsj/"){
		//第一部分
		//二层  

		//各个选项名称对应的内容数量
		_EsdDynamicTransformationScript.num1 = $("#con div:eq(0) a").length-1;
		_EsdDynamicTransformationScript.num2 = $("#con div:eq(1) a").length-1;
		
		//各个选项名称
		_EsdDynamicTransformationScript.esd1TagNum1 = $("#tit li:eq(0) a");
		_EsdDynamicTransformationScript.esd1TagNum2 = $("#tit li:eq(1) a");
		
		//各个选项中的第一个内容
		_EsdDynamicTransformationScript.esd1TagNum1Content1 = $("#con div:eq(0) a:eq(0)");
		_EsdDynamicTransformationScript.esd1TagNum2Content1 = $("#con div:eq(1) a:eq(0)");
		
		//各个选项中的最后一个内容
		_EsdDynamicTransformationScript.esd1TagNum1ContentN = $("#con div:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
		_EsdDynamicTransformationScript.esd1TagNum2ContentN = $("#con div:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");
		
		//第一块
		_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
			
			e = $(this).mouseover();
			$(document).bind("keydown.keydown_1", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
			
			$(document).unbind("keydown.keydown_1");
		});

		_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
			$(document).bind("keydown.keydown_s1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					_EsdDynamicTransformationScript.esd1TagNum1.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
			$(document).unbind("keydown.keydown_s1");
		});

		_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
			$(document).bind("keydown.keydown_e1", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esd1TagNum2.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
			$(document).unbind("keydown.keydown_e1");
		});
		
		//第二块
		_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
			e = $(this).mouseover();
			$(document).bind("keydown.keydown_2", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
					_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
			$(document).unbind("keydown.keydown_2");
		});
		
	}
	
	
	
if(location.href=="http://tjj.jl.gov.cn/hdjl/jzxx/" || location.href=="http://tjj.jl.gov.cn/hdjl/jdts/" || location.href=="http://tjj.jl.gov.cn/hdjl/hdfk/" ){
	// 互动交流
		
	_EsdDynamicTransformationScript.slidePointIntervalts = setInterval(function () {
		if ( document.getElementsByTagName("iframe")[0].contentWindow.document.getElementById("SubmitButton") != undefined ) {
			clearInterval(_EsdDynamicTransformationScript.slidePointIntervalts);
				
			var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
			
			$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名",title:"姓名"});
			$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
			$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"通讯地址",title:"通讯地址"});
			$(inputIframe).find("#frmData input:eq(3)").attr({placeholder:"电子邮件",title:"电子邮件"});
			$(inputIframe).find("#frmData input:eq(4)").attr({placeholder:"标题",title:"标题"});
			
			$(inputIframe).find("#SubmitButton").attr("title","提交");	
			$(inputIframe).find("#ResetButton").attr("title","重置");	
			
		}
	}, 500);	
}	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	